<?php
if(!class_exists('XMapping', false)){
	require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'XMapping.php');
}
class XManyToOne extends XMapping{
	function result($value = null){
		return q($this->target())->find($value);		
	}
}
?>